<extend name="./ljfbase" />
    <block name="main">
        <div class="container">
            <div class="row">
                <div class="col-md-10 col-md-offset-1">
                    <div>
                        <ul class="list-inline">
                        <li><p class="mt10 text-primary">编辑日志</p></li>
                        <li class="pull-right"><a class="btn btn-link" href="{:U('Log/index')}">返回日志列表</a></li>
                    </ul>
                    </div>
                    
                    <div class="row">
                        <form action="{:U('tosave')}" method="post">
                        <input type="hidden" name="id" value="{$log.id}" />
                        <!-- <input class="form-control" type="text" name="title" value="{$log.title}" placeholder="标题" /><br> -->
                        <textarea class="form-control text-center" rows="1" name="title" placeholder="请输入标题">{$log.title}</textarea>
                        <textarea class="form-control" rows="20" name="content" placeholder="请输入日志内容">{$log.content}</textarea><br>
                        <button class="btn btn-primary" type="submit">保存</button>
                        <a class="btn btn-default" href="{:U('detail',array('logid'=>$log[id]))}">取消</a>
                    </form>
                    </div>
                    
                </div>
            </div>
        </div>
    </block>